import React from 'react';
import { HashRouter, Switch, Route } from 'react-router-dom';
import Index from '../pages/Index/Index';
import Login from '../pages/Login/Login';

export default function RootRouter() {
  return (
    <HashRouter>
      <Switch>
        <Route path="/login" component={Login}></Route>
        <Route path="/" component={Index}></Route>
      </Switch>
    </HashRouter>
  );
}
